package com.example.demo.example2.repository;

import com.example.demo.example1.entity.Department;
import com.example.demo.example1.entity.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by pengwan on 2017/7/27.
 */
@RepositoryRestResource(collectionResourceRel = "teacher", path = "teacher") // 在'/teacher'处创建RESTful入口点
public interface TeacherRepository extends JpaRepository<Teacher, String> {
}
